from  appium import webdriver
from fengfan_unittest.feng_test_conf.feng_test_env.feng_test_config import config
import logging
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
from fengfan_unittest.feng_test_method.method import *


class start_App(object):
    def __init__(self):
        Log()
        self.logger = logging.getLogger()

    #用户登陆
    def login(self):
        self.url = 'https://passport.cnblogs.com/user/signin'
        self.headers = {
        }
        userName = "b2DN/zf93yuwWYBCaGIj7BiFWhffwZvN2GFuP5RMYeRArfsLFkx368A7mjvjW3NRmG9YUE3ik5OHRCCSDFtz3fDe14Py9BcDSzWJcrsPAG2cn68JGb/9eQdQqFCseJ+18QZOawvN6MglBSdDX8mr4owQqL3WAv+/XP/z4IIoIXM="
        passWord = "HORn2sW4eKuKNWBQClXFK0xTh0i2MiIp0P54hp1SK8p8/DMtJyCyW+ADxwL+Fr1YvKcpbPMGltGT2ZZQ66gubJPfhYOJxhqQlQW7O9a4dfpo0aS4J80dDd4dKkZ8H8WijNgizZusdpy1F3loHozko0CsSUxOifaxDEajgR2/Cts="
        self.json = {'input1': userName, 'input2': passWord, 'remember': 'True'}
        self.s = requests.session()
        self.s.post(self.url, json=self.json, headers=self.headers, verify=False)

    def back(self):
        pass